#include "auth.h"
#include <QApplication>
#include <core/ImageMgr.h>
#include <core/sharedata/login_data.h>
#include "login/auth_login_impl.h"
#include "ui/StartupDlg.h"
#include "MessageProcess.h"

bool authlogin()
{
    if (qb::loginData::instance().IsLoggedin())
    {
        return true;
    }

    auth::InitDecodeFuncs();
   	ImgMgr::instance().registerImgs("auth");
    StartupDlg loginDlg;
//  loginDlg.setWindowIcon(QIcon(":/guiframe/qeubee.ico"));
    int ret = loginDlg.exec();

	return (ret == QDialog::Accepted);
}
